Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DPU Management Traffic Forwarding script #9

Closed
wants to merge 6 commits into from

Conversation

gpunathilell
Copy link
Owner

Why I did it

This script is added in order to enable or disable the management traffic generated from DPUs to be forwarded through the smartswitch. When we enable the traffic the following actions are taken:

  • ip_table forwarding rule is added to forward traffic from DPU (connected to the bridge-midplane interface) to the management port on the switch - eth0
  • ip_table forwarding rule is added to forward traffic from management port on the switch - eth0 to the DPU (connected to the bridge-midplane interface) for established or related connections
  • ip_table masquerading rule so that SNAT is performed for traffic from the DPU
    The opposite actions are taken when we disable the traffic
Work item tracking
  • Microsoft ADO (number only):

How I did it

Wrote script dpu-mgmt-traffic.sh which will be present in the switch image, this script can be used to enable/disable the DPU management traffic forwarding

How to verify it

The following commands can be executed on the smart switch:
dpu-mgmt-traffic.sh --enable
dpu-mgmt-traffic.sh --disable
dpu-mgmt-traffic.sh -d
dpu-mgmt-traffic.sh -e

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants